package com.snatch.snatchmgr.constant;

/**
 * 系统常量信息
 * 
 * @author XiongTao
 */
public class SYSConstant {

	/** 保存在Session中的用户登录信息键值 */
	public static final String LOGIN_AUTHORIZEDUSERINFO = "userInfo";

	/** 系统角色信息 */
	public static final String CRAWLER_MGR_ID = "1";

	public static final String APPROVAL_MGR_ID = "2";

	public static final String SYS_MGR_ID = "3";

	public static final String CRAWLER_MGR_NAME = "抓取管理员";
 
	public static final String APPROVAL_MGR_NAME = "审核管理员";

	public static final String SYS_MGR_NAME = "系统管理员";

	public static final String SUPER_ADMIN_NAME = "administrator"; // 系统内置的超级管理员

	/** 是否更新用户最后登陆时间 1更新 */
	public static final String IS_UPDATED_LOGIN_DATE = "1";

	/** 是否修改用户密码标识 1修改,0不修改 */
	public static final String IS_UPDATED_PWD = "1";

	/** 用户状态标识 1启用,0不启用 */
	public static final String IS_ENABLE = "1";

	public static final String IS_DISNABLE = "0";

	/** 系统模块信息 */
	public static final String MODULE_NODE_CRAWLER_MGR_VALUE = "1";
	public static final String MODULE_NODE_CRAWLER_MGR_TEXT = "节点抓取管理";

	public static final String MODULE_DATA_MATCH_VALUE = "2";
	public static final String MODULE_DATE_MATCH_TEXT = "数据匹配";

	public static final String MODULE_NODE_CONFIG_MGR_VALUE = "4";
	public static final String MODULE_NODE_CONFIG_MGR_TEXT = "节点配置管理";

	public static final String MODULE_USER_MGR_VALUE = "5";
	public static final String MODULE_USER_MGR_TEXT = "用户管理";

	public static final String MODULE_THIRDACCOUNT_MGR_VALUE = "6";
	public static final String MODULE_THIRDACCOUNT_MGR_TEXT = "投注帐户管理";

	public static final String MODULE_CENTRALDISC_MGR_VALUE = "7";
	public static final String MODULE_CENTRALDISC_MGR_TEXT = "系统配置管理";

	public static final String MODULE_CENTER_TEXT = "管理中心";

	/** 抓取项名称信息 */
	public static final String SNATCH_ITEM_GQ_TEXT = "足球.滚球";
	public static final String SNATCH_ITEM_SP_TEXT = "足球.单式";
	
	public static final String SNATCH_ITEM_SP_CODE = "sp";
	public static final String SNATCH_ITEM_GQ_CODE = "gq";

	
	/**
	 * 未匹配标识
	 */
	public static final int DATA_STATUS_NO_MATCH_VALUE = 1;
	/**
	 * 未匹配描述
	 */
	public static final String DATA_STATUS_NO_MATCH_TEXT = "未匹配";

	/**
	 * 自动匹配标识(手动匹配成功也使用这个状态)
	 */
	public static final int DATA_STATUS_AUTO_MATCH_VALUE = 2;
	/**
	 * 自动匹配描述
	 */
	public static final String DATA_STATUS_AUTO_MATCH_TEXT = "已匹配";
	
	/**
	 * 手工匹配标识
	 */
	//public static final int DATA_STATUS_HANDMADE_MATCH_VALUE = 3;
	/**
	 * 手工匹配描述
	 */
	//public static final String DATA_STATUS_HANDMADE_MATCH_TEXT = "手工匹配";

	public static final int DATA_STATUS_APPROVAL_VALUE = 4;
	public static final String DATA_STATUS_APPROVAL_TEXT = "已审核";

	//public static final int DATA_STANDARD_STATUS_NOMATCH = 0;// 待匹配
	//public static final int DATA_STANDARD_STATUS_MATCH = 1;// 匹配成功
	//需要配置的信息
	//盘中配置信息对应Properties文件中的键 
	public static  final String CENTRAL_DISC_CONFIG_KEY = "nodemanage.centraldisc";
	
	//盘口信息对应Properties文件中的键 
	public static  final String NORMAL_BASE_CONFIG_KEY = "nodemanage.normalbase";
	
	// 过期时间键名称
	public static final String MATCHTIMEOUT = "nodemanage.matchTimeOut";// 赛事过期时间
	public static final String TRADETIMEOUT = "nodemanage.playTimeOut";// 交易项过期时间
	public static final String RATIOGQTIMEOUT = "nodemanage.ratioGQTimeOut";// GQ陪率过期时间
	public static final String RATIODSTIMEOUT = "nodemanage.ratioDSTimeOut";// SP陪率过期时间
	public static final String RATIOZCTIMEOUT = "nodemanage.ratioZCTimeOut";// SP陪率过期时间
	public static final String CLOSESIGNMAX = "nodemanage.closeSignMax";// SP陪率过期时间
	public static long snatchDelayTime;
	public static final String SCORETIMEOUT = "nodemanage.scoreTimeOut";
	public static final String SNATCHTIMEOUT = "nodemanage.snatchTimeOut";
	public static final String FILTERSTRENGTH = "nodemanage.filterStrength";
	public static final String SENDSTRENGTH = "nodemanage.sendStrength";
	public static final String SENDBFSTRENGTH = "nodemanage.sendBFStrength";
	public static final String SNATCHBF = "nodemanage.snatchBF";
	public static final String SENDAUTOSYSSTRENGTH = "nodemanage.sendAutoSysStrength";
	public static final String RATIOAUTOSYSTIMEOUT="nodemanage.ratioAutoSysTimeOut";
	public static final String AUTOSYSTHIRDCODEARRAY="nodemanage.ASthirdcode";
	public static final String DATACENTERTHIRDCODEARRAY="nodemanage.DCthirdcode";
	public static final String FILTERSTRJS = "nodemanage.filterjs";
	public static final String FILTERSTRDQ = "nodemanage.filterdq";
	public static final String FOOTBALLHALF = "nodemanage.footballhalf";	
	
	//=========报文 增量1/全量0 标识============
	/**
	 * 增量报文标识=1
	 */
	public static final int XML_FLAG_ADD=1;
	/**
	 * 全量报文标识=0
	 */
	public static final int XML_FLAG_ALL=0;
	
	
	//=============赛事类型标识====================
	/**
	 * 常规赛
	 */
	public static final int MATCH_FLAG_CG=0; 
	
	/**
	 * 常规赛名称
	 */
	public static final String MATCH_FLAG_CG_STR="常规赛";
	/**
	 * 加时赛
	 */
	public static final int MATCH_FLAG_JS=1; 
	
	/**
	 * 加时赛名称
	 */
	public static final String MATCH_FLAG_JS_STR="加时赛";
	/**
	 * 点球赛
	 */
	public static final int MATCH_FLAG_DQ=2; 
	
	/**
	 *  点球赛 名称
	 */
	public static final String MATCH_FLAG_DQ_STR="点球赛";
	
	//===========单式/滚球 标识
	/**
	 * 单式=1
	 */	
	public static final int MATCH_DATATYPE_NORMAL=1;
	/**
	 * 滚球=2
	 */
	public static final int MATCH_DATATYPE_LIVE=2;
	/**
	 * 早餐=3
	 */
	public static final int MATCH_DATATYPE_BF=3;
	/**
	 * 保存xml的路径
	 */
	public static final String  SAVEDATAPATH ="c:/saveXml/data/";
	
	/**
	 * log4j日志目录
	 */
	public static final String LOG4JPATH = "/usr/logs/";
}
